<template>
	<view>
		<u-cell-group>
			<u-cell-item title="头像显示性别" :arrow="arrow">
				<u-switch v-model="checked"></u-switch>
			</u-cell-item>
		</u-cell-group>
		<!-- 是否显示位置信息 -->
		<u-cell-group>
			<u-cell-item title="是否显示位置" :arrow="arrow">
				<u-switch v-model="addressShow" @change="change"></u-switch>
			</u-cell-item>
		</u-cell-group>
	</view>
</template>

<script>
	import wxLocation from '../../../common/locationAPI/wxLocation.js'
	export default {
		data() {
			return {
				arrow:false,
				checked: false,
				addressShow:true,
				userInfo:this.$store.state.user.userInfo,
			}
		},
		methods: {
			change(){
				if(this.addressShow==true)
				{
					wxLocation.getLocation();
				}
			},
		}
	}
</script>

<style>
	
</style>
